package com.msb.mall.auth.feign;

import com.msb.common.dto.MemberLoginDTO;
import com.msb.common.dto.MemberRegisterDTO;
import com.msb.common.dto.SocialUser;
import com.msb.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("mall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    R register(@RequestBody MemberRegisterDTO dto);

    @PostMapping("/member/member/login")
    R login(@RequestBody MemberLoginDTO dto);

    @PostMapping("/member/member/oauth/login")
    R oauthLogin(@RequestBody SocialUser dto);

}
